﻿namespace ApiLib.Models;

/// <summary>
/// 基础返回码
/// </summary>
public class BaseResponseCode
{
    /// <summary>
    /// 成功
    /// </summary>
    public int Success { get; set; } = 200;

    /// <summary>
    /// 错误
    /// </summary>
    public int Failed { get; set; } = 500;

    /// <summary>
    /// 认证失败，默认401
    /// </summary>
    public int AuthenticationFailure { get; set; } = 401;

    /// <summary>
    /// 未授权访问，默认403
    /// </summary>
    public int UnauthorizedAccess { get; set; } = 403;
}